<?php
$_dir = dirname(dirname(__FILE__)).'/';
include($_dir.'inc/inc.php');
set_time_limit(0);

if (!empty($in_command_line)) {
	if (!isset($_SERVER['argv'][1])) {
		echo 'mo is empty when run in command line.';
		exit;
	}
	$mo = $_SERVER['argv'][1];
} else {
	if (empty($_GET['mo'])) {
		echo 'mo is empty.';
		exit;
	}
	$mo = $_GET['mo'];
}
if (false !== strpos($mo, '.')) {
	$mo = str_replace('.', '/', $mo);
}
include($G['path_inc'].'tools/'.$mo.'.php');